package com.foftact.etfposi;

import java.math.BigDecimal;

/**
 * ETF持仓明细DTO类
 * 用于接收从API抓取的单个持仓数据
 */
public class ETFPosiationDTO {
    private Integer orderNumber; // 序号
    private String stockCode;    // 股票代码
    private String stockName;    // 股票名称
    private BigDecimal netValueRatio; // 占净值比例(%)
    private BigDecimal shareQuantity; // 持股数(万股)
    private BigDecimal positionValue; // 持仓市值(万元)

    // getter和setter方法
    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public BigDecimal getNetValueRatio() {
        return netValueRatio;
    }

    public void setNetValueRatio(BigDecimal netValueRatio) {
        this.netValueRatio = netValueRatio;
    }

    public BigDecimal getShareQuantity() {
        return shareQuantity;
    }

    public void setShareQuantity(BigDecimal shareQuantity) {
        this.shareQuantity = shareQuantity;
    }

    public BigDecimal getPositionValue() {
        return positionValue;
    }

    public void setPositionValue(BigDecimal positionValue) {
        this.positionValue = positionValue;
    }

    @Override
    public String toString() {
        return "ETFPosiationDTO{" +
                "orderNumber=" + orderNumber +
                ", stockCode='" + stockCode + '\'' +
                ", stockName='" + stockName + '\'' +
                ", netValueRatio=" + netValueRatio +
                ", shareQuantity=" + shareQuantity +
                ", positionValue=" + positionValue +
                '}';
    }
}